﻿#region Header
// Copyright (c) 2015 OPEN TONE, Inc.
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php
#endregion
using System;

namespace OpenXmlLib.Exception
{
	/// <summary>
	/// OpenXmlLibの例外クラスです。
	/// </summary>
	public class OpenXmlLibException : System.Exception
	{
		/// <summary>
		/// エラーコード
		/// </summary>
		public ErrorCodes ErrorCode { get; set; }

		public OpenXmlLibException(ErrorCodes errorCode)
			: this(errorCode, null, null)
		{
		}

		public OpenXmlLibException(ErrorCodes errorCode, String message)
			: this(errorCode, message, null)
		{
		}

		public OpenXmlLibException(ErrorCodes errorCode, String message, System.Exception inner)
			: base(message, inner)
		{
			this.ErrorCode = errorCode;
		}
	}
}
